Use the Export Data dialog box to select the options you want to use when exporting model data to a linked Excel file. For more information, see Setting Up Export Links.
To open the Export Data dialog box, choose Export Data from the Model menu.
Each link is shown in a separate row. Use the button to add a new link. To remove a link, click on the number of the link you want to remove and then click on the
button. Then, use the columns to set up information about the link.
Valid
This column indicates whether the destination you have specified exists and can be read. It will say No until you select a destination, and will also say No if you have an existing link, but the file is missing or unreadable.
Destination
This specifies the file to which the software will write the data. Click on this field to open a File Selection dialog and choose a file. If the file can't be used, most commonly because all its worksheets are already specified for importing or exporting data, an error message will appear.
Note: The file should be located in the same directory as the model, or a subdirectory of the model directory named data. If you use a file from a different location, copying the model to a different computer will likely make the link invalid.
Worksheet
This option is only applicable to Excel files. After you have selected the file, the first worksheet it contains will be shown. Click on the name of the sheet to enable the dropdown list
. Then, click on the name of the worksheet to select the worksheet you want.
Note: You can only choose worksheets not already in use by other import or export links. If there is a single worksheet available it will be chosen and no dropdown list will be shown.
Enabled
Check this option to enable the link for Export All on this dialog, and for automatic import after any change if Dynamic is checked.
Dynamic
Check this option to have the specified link be executed when the model is run.
Data Source
You can either export all the variables in a model or the content of tables defined in the model. Click on this cell to get a list of the tables to choose from. Tables are identified by an internal name based on creation sequence, along with a page number.
Data Orientation
This specifies the orientation of the destination data. If Vertical is selected, then variable names should appear along a row with the associated values directly underneath them. If Horizontal is selected, then variable names should appear in a column with the associated values to their right. This option is only available when exporting all model variables; tables use the orientation of the table.
Interval
This specifies the frequency with which you want to export the data. Valid settings are "Every DT", "Use Table Settings", or a number. To change to a number, type in the number. To change from a number, begin typing and then choose one of "Every DT" or "Use Table Settings" from the dropdown list that appears as you type.
Export
Click on the
button to export to the designated link. The export will be attempted regardless of the Enabled and Dynamic settings. A message will be shown about the success of, or problems with, the import.
Click this button to export to all of the links that are marked enabled. This will happen whether the links are marked dynamic or not. A message will be displayed showing the results of all the exports. If you have many links, this is a convenient way to check that they are all working as expected.
Note: "Export all" exports from the most recently made run. If you have not made a run, names will be exported but no values will be.
Click OK to save the changes you have made to links. Click Cancel to discard them.